home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 31
/
CDASC_31_1996_juillet_aout.iso
/
vrac
/
bascinst.zip
/
.EXE
/
INSTALL.DOC
next >
Wrap
Text File
|
1996-05-26
|
13KB
|
325 lines
The Basic Installer
v1.0
by: °FireZone Ent.
1.0 About The Basic Installer
2.0 The Programming Language
2.1 Appearance
2.2 Running Other Programs
2.3 Advanced Features
2.4 Command Summaries
3.0 License Agreements and Ordering Info.
1.0 About The Basic Installer
The Basic Installer was written by °FireZone Ent. for the purpose of
distributing software. We realized that scince this is such a useful file,
we spruced it up and are distributing it. If it recieves great reviews, we
will make it better, and sell it. Payment will be by check only.
This program is powerful enough the meet the needs of any small time
software creator. With the ability to draw boxes, locate text, change the
foreground and background color, beep, run external programs, etc. This is
the ideal install program for any programmer.
2.0 The Programming Language
The Basic Installer reads the script file INSTALL.SCR to run. You will
find that the language to this program is very similar to the Basic language.
If you know Basic or Batch, you will conquer this in a few minutes.
P.S. If the file INSTALL.SCR is not present, you're gonna get some errors.
2.1 Appearance
The Appearance is very important to many people, because the appearance
often sells a product. Thus you will want to make an appearance as impressive
as possible. The following are statements that can be used to affect the
appearance of the Installation of your product:
CLS
BOX
MODE
DISP
FCOLOR
BCOLOR
LOCATE
CLS: Just as in Batch or Basic, it will clear the screen.
BOX: The box statement will draw a shadow box on the screen using the
parameters you specify. The systax is as follows:
BOX forcolor, backcolor, startline, startcol, endline, endcol
Example:
BOX 4,0,8,25,16,55
That will draw a red box from coordinates 8,25 to 16,55. Text is now
the color black, because the text appears as the background on the box.
The box size and appearance and color options are directly effected by
the screen mode (MODE statement). Another way to type it is:
BOX ,,8,25,16,55 That will not effect colors (it will reverse the box's)
MODE: The same as SCREEN in QBasic.
The following table summarizes screen modes:
──────────MDPA, CGA, Hercules, Olivetti, EGA, VGA, or MCGA Adapters───────────
MODE 0: Text mode only
■ 40 x 25, 40 x 43, 40 x 50, 80 x 25, 80 x 43, or 80 x 50 text format,
8 x 8 character box (8 x 14, 9 x 14, or 9 x 16 with EGA or VGA)
■ 16 colors assigned to any of 16 attributes (with CGA or EGA)
■ 64 colors assigned to any of 16 attributes (with EGA or VGA)
■ Depending on the text resolution and adapter, 8 video memory pages
(0-7), 4 pages (0-3), 2 pages (0-1), or 1 page (0)
───────────────────────CGA, EGA, VGA, or MCGA Adapters────────────────────────
MODE 1: 320 x 200 graphics
■ 40 x 25 text format, 8 x 8 character box
■ 16 background colors and one of two sets of 3 foreground colors
assigned using COLOR statement with CGA
■ 16 colors assigned to 4 attributes with EGA or VGA
■ 1 video memory page (0)
MODE 2: 640 x 200 graphics
■ 80 x 25 text format, 8 x 8 character box
■ 16 colors assigned to 2 attributes with EGA or VGA
■ 1 video memory page (0)
─────────────────────Hercules, Olivetti, or AT&T Adapters─────────────────────
MODE 3: Hercules adapter required, monochrome monitor only
■ 720 x 348 graphics
■ 80 x 25 text format, 9 x 14 character box
■ Usually 2 video memory pages (0-1); 1 page (0) if a second color
display adapter is installed
■ PALETTE statement not supported
■ Invoke the Hercules driver MSHERC.COM before using screen mode 3
MODE 4:
■ Supports Olivetti Personal Computers models M24, M240, M28, M280,
M380, M380/C, and M380/T and AT&T Personal Computers 6300 series
■ 640 x 400 graphics
■ 80 x 25 text format, 8 x 16 character box
■ 1 of 16 colors assigned as the foreground color (selected by the
COLOR statement); background is fixed at black
■ 1 video memory page (0)
■ PALETTE statement not supported
─────────────────────────────EGA or VGA Adapters──────────────────────────────
MODE 7: 320 x 200 graphics
■ 40 x 25 text format, 8 x 8 character box
■ Assignment of 16 colors to any of 16 attributes
■ If 64K EGA adapter memory, 2 video memory pages (0-1); otherwise,
8 pages (0-7)
MODE 8: 640 x 200 graphics
■ 80 x 25 text format, 8 x 8 character box
■ Assignment of 16 colors to any of 16 attributes
■ If 64K EGA adapter memory, 1 video memory page (0); otherwise,
4 pages (0-3)
MODE 9: 640 x 350 graphics
■ 80 x 25 or 80 x 43 text format, 8 x 14 or 8 x 8 character box
■ 16 colors assigned to 4 attributes (64K adapter memory), or
64 colors assigned to 16 attributes (more than 64K adapter memory)
■ If 64K EGA adapter memory, 1 video memory page (0); otherwise,
2 pages (0-1)
─────────────────EGA or VGA Adapters, Monochrome Monitor Only─────────────────
MODE 10: 640 x 350 graphics, monochrome monitor only
■ 80 x 25 or 80 x 43 text format, 8 x 14 or 8 x 8 character box
■ Up to 9 pseudocolors assigned to 4 attributes
■ 2 video memory pages (0-1), 256K adapter memory required
─────────────────────────────VGA or MCGA Adapters─────────────────────────────
MODE 11 (VGA or MCGA)
■ 640 x 480 graphics
■ 80 x 30 or 80 x 60 text format, 8 x 16 or 8 x 8 character box
■ Assignment of up to 256K colors to 2 attributes
■ 1 video memory page (0)
MODE 12 (VGA)
■ 640 x 480 graphics
■ 80 x 30 or 80 x 60 text format, 8 x 16 or 8 x 8 character box
■ Assignment of up to 256K colors to 16 attributes
■ 1 video memory page (0)
MODE 13 (VGA or MCGA)
■ 320 x 200 graphics
■ 40 x 25 text format, 8 x 8 character box
■ Assignment of up to 256K colors to 256 attributes
■ 1 video memory page (0)
DISP: The same as ECHO in Batch. But, you can't specify environment variables
like %PATH% because Install doesn't interface with the DOS environment.
DISP is often used with the LOCATE statement, and is required to be
preceded by the LOCATE statement if you want to display text in a BOX.
The text color is effected by the "backcolor" in the BOX statement.
Use FCOLOR to change the text color, and BCOLOR to change the background.
FCOLOR: Changes the Foreground color. It is directly effected by the MODE
statement and the BOX statements "backcolor" parameter. Valid: 0-15
FCOLOR 7 (will change text the color to plain white)
BCOLOR: Changes the Background color. It is directly effected by the MODE
statement and the BOX statements "forcolor" parameter. Valid: 0-7
BCOLOR 1 (will change the background color to blue)
LOCATE: Just like LOCATE in QBasic. LOCATE 2,6 (changes to the 2nd Row, and
6th column).
2.2 Running Other Programs
Running other programs is required to install your files. If you made an
archive containing your files, you will want to run it to extract your files
into the specified directory. There are two ways to run your programs:
EXEC commandline
EXEC+INPUT commandline
EXEC: Will run the commandline exactly as typed. Spaces and pipes are valid
and accepted charactors in the command line.
EXEC+INPUT: must be typed exactly as you see it. This is exactly like EXEC,
but one added bonus. After using the INPUT statement, this will add it
at the end of the commandline. For example:
If INPUT contains the line: C:\INSTALL, this is what happens:
Type: EXEC+INPUT EXTRACT -O
Install executes: "EXTRACT -O C:\INSTALL"
Do you see the benefit? Good. Read about INPUT to learn more.
2.3 Advanced Features:
These advanced features are extremely useful for a ton of stuff. Here is
a list of all the statements that have not been discussed yet:
DRAW
INPUT
PAUSE
PLAY
SOUND
QUIT
DRAW: a graphics statement that interprets a string expression and
draws an object.
Syntax:
DRAW stringexpression
■ stringexpression is a one or more drawing commands.
Drawing Commands
───Used to Draw a Line or Move the Current Graphics Position (CGP) or Both───
B Optional prefix - move, no line │ N Optional prefix - line, no move
Un Up Dn Down │ Ln Left Rn Right
En Up and right Fn Down and right │ Gn Down and left Hn Up and left
Mx,y Move to screen point x,y (if x has a + or - in front, move is relative)
─────────────────────────────────Used to Color────────────────────────────────
Cn Change drawing (foreground) color │ Pp,b Fill enclosed shape that has
(SCREEN mode determines 'n') │ border color b with color p
────────────────────────────Used to Scale and Rotate──────────────────────────
Sn Increases or decreases length of │ An Rotate (n * 90) degrees,
moves (n=4 is default) │ where n = 0, 1, 2, or 3
│ TAn Rotate (0 >= n <= 360) degrees
The DRAW statement requires location not by LOCATE, but by adding to the
commandline the "B" statement. For example:
To draw a triangle at 60,90 you would type:
DRAW BR60 BD90 F5 E5 L10
INPUT: Used to store input for the EXEC+INPUT statement. Can be used in
conjuncture with the LOCATE statement.
PAUSE: Pauses until a key is pressed, or for the specified amount of seconds.
PAUSE 5 will pause for five seconds (or until a key is pressed)
PAUSE will wait until a key is pressed
PLAY: a device I/O statement that plays music
Syntax:
PLAY commandstring
■ commandstring is a stringexpression that contains music commands:
──────────────────────────Set Octaves and Play Tones──────────────────────────
On Sets current octave (n = 0-6) │ < or > Up or down one octave
Nn Plays note n (n = 0-84, 0 is a │ A-G Plays A, B, ..., G in current
rest) │ octave (+ = sharp, - = flat)
──────────────────────────Set Tone Duration and Tempo─────────────────────────
Ln Sets length of a note (L1 is │ MS Each note plays 3/4 of length
whole note, L4 is quarter note, │ MN Each note plays 7/8 of length
etc.) n = 1-64 │ ML Each note plays full length
Tn Sets number of quarter notes per │ Pn Pause for the duration of
minute (n = 32-255, 120 default │ n quarternotes (n = 1-64)
────────────────────────────────Set Operation─────────────────────────────────
MF Plays music in foreground │ MB Plays music in background
SOUND: Makes a beep from the PC Speaker
QUIT: Stops the program immediatley. It's only use is either to hide some
programming or to stop the program from reaching some script so you can
debug it.
2.3 Command Summaries
CLS: clear the screen
BOX: draw a shadow box on the screen
MODE: change Screen mode
DISP: display text on the screen
FCOLOR: change fore color
BCOLOR: change back color
LOCATE: change curser location
EXEC: execute a command line
EXEC+INPUT: execute a command line with input as a parameter
DRAW: draw shapes on the screen
INPUT: input information
PAUSE: pause for n seconds or until a key is pressed
PLAY: play music on the PC Speaker
SOUND: make the PC Speaker beep once
QUIT: end the script
3.0 License Agreements and Ordering Info.
°FireZone Ent. is in no way responsible for any machine damage or data
corruption caused by this program. If any damage occurs, it is the fault of
the script writer. If the files are tampored with or infected by a virus,
he/she that infects the files is subject to all penalties that may be
incurred by the United States Government. All files are (C) Copyright 1996 by
°FireZone Ent.
Order Form:
-----------
Name (please print)________________________________________________________
Address ___________________________________________________________________
Address ___________________________________________________________________
City _______________________ St./Prov. _________________ ZIP/Code _________
Country (if not USA) ____________________ Phone/Fax _______________________
The Basic Installer: $9.00
Payment is by check only!
Make checks payable to: Ethan Olson
(He's the writer of the software, as well as the founder of °FireZone Ent.)
Mail to: Ethan Olson
°FireZone Ent.
P.O. Box 360
Ashburnham, MA 01430